package com.ternnetwork.core.service.org;


import java.util.List;



import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.persistence.page.BootstrapGrid;
import com.ternnetwork.persistence.page.Page;
import com.ternnetwork.core.entity.org.Department;
import com.ternnetwork.core.ui.DepartmentZtree;








public interface DepartmentService {
	public BaseResponse idoAdd(Department t);
	public BaseResponse idoUpdate(Department t);
	public BaseResponse doAdd(Department t);
	public BaseResponse doUpdate(Department t);
	public List<DepartmentZtree> getZTreeJSON();
	public BaseResponse idoDeleteById(long id);
	public List<Department> findAll(String jpql,Object ...param);
	public List<Department> findAllByCategory(String category);
	public Department findByCode(String code);
	public Page<Department> query(Department t,Page page);
	public BootstrapGrid queryToBootstrapGrid(Department t,Page page);
	public Department findById(Long id);
	public List<Department> findAllByLikeName(String name);
	public void setParentName(Page<Department> page);
	

}
